<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<title>影院列表</title>
<!-- for-mobile-apps -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
		function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- //for-mobile-apps -->
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<!-- pop-up -->
<link href="css/popuo-box.css" rel="stylesheet" type="text/css" media="all" />
<!-- //pop-up -->
<link href="css/easy-responsive-tabs.css" rel='stylesheet' type='text/css'/>
<link rel="stylesheet" type="text/css" href="css/zoomslider.css" />
<link rel="stylesheet" type="text/css" href="css/table-style.css" />
<link rel="stylesheet" type="text/css" href="css/basictable.css" />
<!-- list-css -->
<link rel="stylesheet" href="css/list.css" type="text/css" media="all" />
<!-- //list-css -->
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href="css/font-awesome.css" rel="stylesheet"> 
<script type="text/javascript" src="js/modernizr-2.6.2.min.js"></script>
<!--/web-fonts-->
<link href='http://fonts.googleapis.com/css?family=Tangerine:400,700' rel='stylesheet' type='text/css'>
<link href="http://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<!--//web-fonts-->
</head>
<body>
<!--/main-header-->
  <!--/banner-section-->
	<div id="demo-1" class="banner-inner">
	 <div class="banner-inner-dott">
		<!--/header-w3l-->
			   <div class="header-w3-agileits" id="home">
			     <div class="inner-header-agile part2">	
				<nav class="navbar navbar-default">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>
						<h1><a  href="index.html"><span>M</span>ovies <span>P</span>ro</a></h1>
					</div>
					<!-- navbar-header -->
					<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
							<ul class="nav navbar-nav">
							<li><a href="/index">首页</a></li>
							<li><a href="/moviedetail">电影</a></li>
							<li  class="active"><a href="cinemaList">影院</a></li>
							<li><a href="list.html">选座</a></li>
							<li><a href="contact.html">预定</a></li>
						</ul>

					</div>
					<div class="clearfix"> </div>	
				</nav>
					<div class="w3ls_search">
									<div class="cd-main-header">
										<ul class="cd-header-buttons">
											<li><a class="cd-search-trigger" href="#cd-search"> <span></span></a></li>
										</ul> <!-- cd-header-buttons -->
									</div>
									<div id="cd-search" class="cd-search">
										<form action="#" method="post">
											<input name="Search" type="search" placeholder="Search...">
										</form>
									</div>
								</div>
	
			</div> 

			   </div>
		<!--//header-w3l-->
		</div>
    </div>
  <!--/banner-section-->
 <!--//main-header-->
	         <!--/banner-bottom-->
			  <div class="w3_agilits_banner_bootm">
			     <div class="w3_agilits_inner_bottom">
			            <div class="col-md-6 wthree_agile_login">
						     <ul>
									<li><i class="fa fa-phone" aria-hidden="true"></i> (+000) 009 455 4088</li>
									<c:if test="${dbuser==null }">
									<li><a href="#" class="login"  data-toggle="modal" data-target="#myModal4">登录</a></li>
									<li><a href="#" class="login reg"  data-toggle="modal" data-target="#myModal5">注册</a></li>
									</c:if>
									<c:if test="${dbuser!=null }">
										<li><a href="#" class="login">欢迎用户：${dbuser.name }</a></li>
										<li><a href="/logout" class="login">注销</a></li>
									</c:if>
								</ul>
						</div>
						
				</div>
			</div>
			<!--//banner-bottom-->
		    <%@include file="loginAndRegModal.jsp" %>
	<div class="container">
	<div class="row clearfix" style="background:#EDEDED;">
		<div class="col-md-3 column">
			<img alt="340x240" src="${cinema.cinemapic }" style="max-height:400px;max-width: 600px;"/>
		</div>
		<div class="col-md-5 column">
		<br><br><br><br>
			<h2>
				${cinema.cinemaname }
			</h2>
			<br>
			
			<p>
				${cinema.address }<br><br>
电话：${cinema.tel }</p>
<br>

			<p>
				 <span>服务:</span>&nbsp;&nbsp;&nbsp;${cinema.service }
			</p>
		</div>
		<div class="col-md-4 column">
			<img alt="140x140" src="images/ditu.png" />
		</div>
	</div>
	<div class="clearfix" style="margin-bottom: 100px;"></div>

	<div class="form-inline">
		<div class="col-md-12 column">
			<img alt="140x140" src="${movie.mimg }" style="max-height:500px;max-width: 700px;"/>
			<br><br>
			
			<h2>
				${movie.mname }<span style="font-size:25px; vertical-align:middle;"> ${movie.score }分</span>
			</h2>
			
			<br><br>
			<p>
			<b>时长 :</b> ${movie.time } &nbsp;&nbsp;&nbsp; <b>类型 :</b>  &nbsp;&nbsp;&nbsp;${movie.mtype }  <b>主演 :</b> ${movie.actor }	</p>
				<ul id="myTab" class="nav nav-tabs" role="tablist">
						<c:if test="${status.equals('-1') }">
							<li role="presentation" class="active"><a href="cinema?status=-1&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >今天${jintian }</a></li>
							<li role="presentation"><a href="cinema?status=0&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >明天${mingtian }</a></li>
							<li role="presentation" ><a href="cinema?status=1&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >后天${houtian }</a></li>
						</c:if>
						<c:if test="${status.equals('0')  }">
							<li role="presentation"><a href="cinema?status=-1&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >今天${jintian }</a></li>
							<li role="presentation" class="active"><a href="cinema?status=0&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >明天${mingtian }</a></li>
							<li role="presentation" ><a href="cinema?status=1&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >后天${houtian }</a></li>
						</c:if>
						<c:if test="${status.equals('1')  }">
							<li role="presentation"><a href="cinema?status=-1&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >今天${jintian }</a></li>
							<li role="presentation"><a href="cinema?status=0&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >明天${mingtian }</a></li>
							<li role="presentation" class="active"><a href="cinema?status=1&movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}" >后天${houtian }</a></li>
						</c:if>
							</ul>
		</div>
	</div>
	<div class="row clearfix">
		<div class="col-md-12 column">
			<table>
				<thead>
					<tr>
						<th>
							放映时间
						</th>
						<th>
							语言版本
						</th>
						<th>
							放映厅
						</th>
						<th>
							售价(元)
						</th>
						<th>
							选座购票
						</th>
					</tr>
				</thead>
				<tbody>
				<c:if	test="${status.equals('-1') }">
					<c:set var="time" value="${jintian }14:10"/>
				</c:if>
				<c:if	test="${status.equals('0') }">
					<c:set var="time" value="${mingtian }14:10"/>
				</c:if>
				<c:if	test="${status.equals('1') }">
					<c:set var="time" value="${houtian }14:10"/>
				</c:if>
				<c:forEach begin="0" end="5" step="1">
					<tr>
						<td>
							14:10<br>
							<span style="font-size:12px;">16:27散场</span>
						</td>
						<td>
							国语3D
						</td>
						<td>
							4号厅
						</td>
						<td>
							¥28元
						</td>
						<td>
						<c:if test="${dbuser.name==null }">
							<a href="#" data-toggle="modal" data-target="#myModal4" class="btn btn-danger">选座购票</a>
						</c:if>
						<c:if test="${dbuser.name!=null }">
							<a href="seat?movieId=${movie.movieId }&cinemaId=${cinema.cinemaId}&time=${time}" class="btn btn-danger">选座购票</a>
						</c:if>
						</td>
					</tr>
					</c:forEach>
					<%@include file="loginAndRegModal.jsp" %>
				</tbody>
			</table>
		</div>
	</div>
</div>				
	
	
	
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/main.js"></script>
<script src="js/simplePlayer.js"></script>
<script src="js/jquery.magnific-popup.js" type="text/javascript"></script>
<script src="js/easy-responsive-tabs.js"></script>
<script type="text/javascript" src="js/jquery.basictable.min.js"></script>
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script src="js/bootstrap.js"></script>
</body>
</html>